<?php
    // Define base path obtainable throughout the whole application
    defined('BASE_PATH')
        || define('BASE_PATH', realpath(dirname(__FILE__)));
    
    // Define path to application directory
    defined('APPLICATION_PATH')
        || define('APPLICATION_PATH', BASE_PATH . '/application');
    
    // Define application environment
    defined('APPLICATION_ENV')
        || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'development'));
    
    // Define path to cache directory
    define('CACHE_DIR', APPLICATION_PATH . '/cache/');
    
    define('BLOCK_PATH', APPLICATION_PATH . '/blocks');
    
    // Define templates path
    define('PUBLIC_PATH', realpath(dirname(__FILE__)) . '/public');
    
    define('TEMPLATES', '/public/templates');
    
    define('TEMPLATES_PATH', PUBLIC_PATH . '/templates');
